package com.clark.crawler.novel.deal;

import com.clark.crawler.novel.bean.Chapter;

/**
 * description:
 *
 * @author tianhua.xie（tianhua.xie@ucarinc.com）
 * @version 1.0
 * @date 2018/12/27 9:44
 */
public class KenshuChapterDeal extends ChapterDeal {
    @Override
    public void deal(Chapter chapter) {
        String separator = System.getProperty("line.separator");
        String content = chapter.getContent().replaceAll(" +", separator);
        chapter.setContent(content);
    }
}
